import request from '@/utils/request'

export function getProjectConfigList() {
  return request({
    url: 'project_config/list',
    method: 'post'
  })
}

export function getProjectConfig(id) {
  return request({
    url: 'project_config/get',
    method: 'post',
    params: { id }
  })
}

export function addProjectConfig(data) {
  return request({
    url: 'project_config/add',
    method: 'post',
    data
  })
}

export function editProjectConfig(data) {
  return request({
    url: 'project_config/edit',
    method: 'post',
    data
  })
}

export function editProjectConfigStatus(id, status) {
  return request({
    url: 'project_config/edit_status',
    method: 'post',
    params: { id, status }
  })
}
